
// 定义
const MyCounter = {
    name: 'MyCounter',
    components: {
        CounterComponent: CounterComponent
    },
    template: `
        <div>
            <h2>上层组件: {{name}}</h2>
            <CounterComponent ></CounterComponent>
        </div>
    `,
    setup() {
      const name = Vue.ref('演示组件嵌套');
      return {name};
    }
};


